package com.ruoyi.treatment.service;

import java.util.List;
import com.ruoyi.treatment.domain.DocTreatment;
import com.ruoyi.treatment.domain.dto.DocTreatmentSubmitDto;
import com.ruoyi.treatment.domain.dto.YaoDanDto;

/**
 * 就诊信息Service接口
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
public interface IDocTreatmentService 
{
    /**
     * 查询就诊信息
     * 
     * @param treatId 就诊信息主键
     * @return 就诊信息
     */
    public DocTreatment selectDocTreatmentByTreatId(Long treatId);

    /**
     * 查询就诊信息列表
     * 
     * @param docTreatment 就诊信息
     * @return 就诊信息集合
     */
    public List<DocTreatment> selectDocTreatmentList(DocTreatment docTreatment, Long userId);

    /**
     * 新增就诊信息
     * 
     * @param docTreatment 就诊信息
     * @return 结果
     */
    public int insertDocTreatment(DocTreatment docTreatment);

    /**
     * 修改就诊信息
     * 
     * @param docTreatment 就诊信息
     * @return 结果
     */
    public int updateDocTreatment(DocTreatment docTreatment);

    /**
     * 批量删除就诊信息
     * 
     * @param treatIds 需要删除的就诊信息主键集合
     * @return 结果
     */
    public int deleteDocTreatmentByTreatIds(Long[] treatIds);

    /**
     * 删除就诊信息信息
     * 
     * @param treatId 就诊信息主键
     * @return 结果
     */
    public int deleteDocTreatmentByTreatId(Long treatId);


    int submitMedicine(DocTreatmentSubmitDto docTreatmentSubmitDto) throws Exception;

    List<YaoDanDto> selectYaoDanByPrescriptId(String prescriptionId);

}
